package org.example.learn.bytebuddy.annotation;

import java.util.Random;

@AClass(classDeclare = "测试ByteBuddy",alias = "data",id = 1001)
public class DataRepository extends Repository<String> {

    @AMethod(declare = "根据ID查询",alias = "getDataById")
    @Override
    public String queryById(String id) {
        return id + new Random().nextInt(10000);
    }
}
